package com.lianniu.web.demand.service;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.demand.vo.DemandVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017-05-14.
 */
public interface DemandService {

    public BaseResult isAuthed(String userid);

    BaseResult insert(DemandVo record);

    BaseResult insertSelective(DemandVo record);

    BaseResult selectByPrimaryKey(Long id);

    BaseResult selectByUserId(@Param("userId")Long userId,int pageNum);

    BaseResult findSource(String userId,int pageNum);

    BaseResult updateByPrimaryKeySelective(DemandVo record);

    BaseResult updateByPrimaryKey(DemandVo record);

    BaseResult increaseSupplyCount(@Param("id")Long id);

    BaseResult increaseClickCount(@Param("id")Long id );
}
